<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
</head>
<body>
<div th:fragment="example"><p th:text="${context.get('foo')}"></p>
<p th:text="${context.get('bar')}"></p></div>
</body>
</html>